﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Auction_Intranet.Models
{
    public class UpdateUserBalanceModel
    {
        public int id { get; set; }

        public string username { get; set; }
        
        [Required(ErrorMessage = "Balance field is required.")]
        [Display(Name = "User balance")]        
        [RegularExpression("([0-9][0-9]*)", ErrorMessage = "Positive whole number is required.")]  
        public int balance { get; set; }
    }
}